Skip to content

Conversation

@Will-ShaoHua
Copy link
Contributor

@Will-ShaoHua Will-ShaoHua commented Oct 17, 2024

preparation work for #4976
implementation of aws/aws-toolkit-vscode#5702

Description

Current LSP start is coupled with vector index creation, this should be decoupled. We will be having new releases in the LSP to build some other indexes for everyone very soon ( not computation expensive as vector index), therefore we need to start LSP by default. The vector indexing, as a computational expensive index, will be only enabled if opt-in.

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Will-ShaoHua Will-ShaoHua requested a review from a team as a code owner October 17, 2024 13:02
@Will-ShaoHua Will-ShaoHua marked this pull request as draft October 17, 2024 13:05
@Will-ShaoHua Will-ShaoHua force-pushed the project-context-process branch from 6c73a33 to 0e53a01 Compare October 17, 2024 13:14
@Will-ShaoHua Will-ShaoHua marked this pull request as ready for review October 17, 2024 13:15
@Will-ShaoHua Will-ShaoHua changed the title Project context process config(amazonq): Decouple LSP from vector index creation; start LSP by default Oct 17, 2024
if (isIndexSuccess) isIndexComplete.set(true)
return@launch
if (CodeWhispererSettings.getInstance().isProjectContextEnabled()) {
val isIndexSuccess = index()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you need to call index() regardless of whether projectContext is enabled or not. If enabled, call it with config 'all' otherwise config 'default'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nah this one doesn't have the latest lsp API

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's still the old one which only does chat vector

@Will-ShaoHua Will-ShaoHua marked this pull request as ready for review October 21, 2024 21:25
@Will-ShaoHua Will-ShaoHua requested a review from a team as a code owner October 21, 2024 21:25
@Will-ShaoHua Will-ShaoHua requested a review from leigaol October 21, 2024 21:25
@Will-ShaoHua
Copy link
Contributor Author

Will-ShaoHua commented Oct 21, 2024

@rli i will add test as a followup

@Will-ShaoHua Will-ShaoHua merged commit e3c47d7 into aws:main Oct 21, 2024
12 of 13 checks passed
@Will-ShaoHua Will-ShaoHua deleted the project-context-process branch October 21, 2024 23:52
Will-ShaoHua added a commit to Will-ShaoHua/aws-toolkit-jetbrains that referenced this pull request Oct 22, 2024
Will-ShaoHua added a commit to Will-ShaoHua/aws-toolkit-jetbrains that referenced this pull request Oct 22, 2024
Will-ShaoHua added a commit that referenced this pull request Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants